package com.atguigu.ioc.bean;

import java.util.Arrays;

/**
 * Date:2020/9/23
 * Author:ybc
 * Description:
 */
public class Emp {

    private Integer eid;

    private String ename;

    private Integer age;

    private String email;

    private String[] hobbys;

    private Dept dept;

    @Override
    public String toString() {
        return "Emp{" +
                "eid=" + eid +
                ", ename='" + ename + '\'' +
                ", age=" + age +
                ", email='" + email + '\'' +
                ", hobbys=" + Arrays.toString(hobbys) +
                ", dept=" + dept +
                '}';
    }

    public String[] getHobbys() {
        return hobbys;
    }

    public void setHobbys(String[] hobbys) {
        this.hobbys = hobbys;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }

    public Integer getEid() {
        return eid;
    }

    public void setEid(Integer eid) {
        this.eid = eid;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Emp() {
        System.out.println();
    }

    public Emp(Integer eid, String ename, Integer age, String email) {
        this.eid = eid;
        this.ename = ename;
        this.age = age;
        this.email = email;
    }
}
